Package com.fwdekker.randomness.string

Insertion of random strings.

Types

StringGroupAction
Link copied to clipboard
class StringGroupAction : DataGroupAction
All actions related to inserting strings.
StringInsertAction
Link copied to clipboard
class StringInsertAction(scheme: StringScheme) : DataInsertAction
Inserts random alphanumerical strings.
StringScheme
Link copied to clipboard
data class StringScheme(myName: String, minLength: Int, maxLength: Int, enclosure: String, capitalization: CapitalizationMode, serializedSymbolSets: Map<String, String>, serializedActiveSymbolSets: Map<String, String>, excludeLookAlikeSymbols: Boolean) : Scheme<StringScheme>
Contains settings for generating random strings.
StringSettings
Link copied to clipboard
data class StringSettings(schemes: MutableList<StringScheme>, currentSchemeName: String) : Settings<StringSettings, StringScheme>
The user-configurable collection of schemes applicable to generating strings.
StringSettingsAction
Link copied to clipboard
class StringSettingsAction : DataSettingsAction
Controller for random string generation settings.
StringSettingsComponent
Link copied to clipboard
Component for settings of random string generation.
StringSettingsConfigurable
Link copied to clipboard
The configurable for string settings.
SymbolSet
Link copied to clipboard
data class SymbolSet(name: String, symbols: String)
A SymbolSet represents a named collection of symbols.
SymbolSetTable
Link copied to clipboard
class SymbolSetTable : ActivityTableModelEditor<SymbolSet>
An editable table for selecting and editing SymbolSets.

Functions

sum
Link copied to clipboard
fun Iterable<SymbolSet>.sum(excludeLookAlikeSymbols: Boolean = false): List<String>
Combines the symbols of all the symbol sets, optionally removing duplicate characters.
toMap
Link copied to clipboard
fun Collection<SymbolSet>.toMap(): Map<String, String>
Converts a collection of symbol sets to a map from the symbol sets' names to the respective symbols.
toSymbolSets
Link copied to clipboard
fun Map<String, String>.toSymbolSets(): List<SymbolSet>
Converts a map to a list of symbol sets, using the key as the name and the value as the symbols.